<?php
/*
 * Ryan Olson
 * ryan.olson.x@gmail.com
 * January 14th, 2011
 * ------------------------------
 * Email.php contains functions related to emailing 
 * (mainly used to email back applicants upon receiving their application)
**/
function emailBack($emailTo)
{
	$emailFrom = "noreply@luxaeturna.com";
	$subject = "Thanks for your application";
	$body = "
		<html>
		<body>
			<h1>We have received your application!</h1>\n 
			Once we are able to look it over, we'll give you a call!
			<p />Thanks,<p /><b>Dr. Duah<br />MLMTS<br />Accra, Ghana</b>
		</body>
		<html>"; 
	// To send HTML mail, the Content-type header must be set
	$headers  = 'MIME-Version: 1.0' . "\r\n";
	$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";

	// Additional headers
	$headers .= 'From: LuxAeturna NoReply ' . $emailFrom . "\r\n";

	mail($emailTo, $subject, $body, $headers);
}
?>
